<HTML>
<HEAD>
<TITLE>
NullPointerException.h
</TITLE>
</HEAD>
<BODY>
<PRE>
<font color="blue">#ifndef</font> NULLPOINTEREXCEPTION_H_
<font color="blue">#define</font> NULLPOINTEREXCEPTION_H_

<font color="blue">#include</font> <font color="maroon">&#60;exception&#62;</font>

<font color="blue">using</font> <font color="blue">namespace</font> std;
<font color="blue">class</font> NullPointerException <font color="black">:</font> <font color="blue">public</font> exception<font color="black">{</font>
    <font color="blue">public</font><font color="black">:</font>
        <font color="blue">const</font> <font color="blue">char</font><font color="black">*</font> what<font color="black">(</font><font color="black">)</font> <font color="blue">const</font> <font color="blue">throw</font><font color="black">(</font><font color="black">)</font><font color="black">{</font>
            <font color="blue">return</font> <font color="maroon">"Puntero nulo"</font>;
        <font color="black">}</font>
<font color="black">}</font>;

<font color="blue">#endif</font> <font color="green">/*NULLPOINTEREXCEPTION_H_*/</font>

</PRE>
</BODY>
</HTML>
